using System;
using System.Diagnostics;
#if !NET_40_OR_GREATER
    using System.Globalization;
#endif

namespace OpenWaves
{
    public class DebugLoggingService : ILoggingService
    {
#if NET_40_OR_GREATER
        public void Log(LogEntrySeverity severity, Exception exception, string message)
        {
            Debug.WriteLine("{0}\t{1}\n{2}", severity, message, exception);
        }

        public void Log(LogEntrySeverity severity, string message)
        {
            Debug.WriteLine("{0}\t{1}", severity, message);
            
        }
#else 
        public void Log(LogEntrySeverity severity, Exception exception, string message)
        {
            Debug.WriteLine(string.Format(CultureInfo.InvariantCulture, "{0}\t{1}\n{2}", severity, message, exception));
        }

        public void Log(LogEntrySeverity severity, string message)
        {
            Debug.WriteLine(string.Format(CultureInfo.InvariantCulture, "{0}\t{1}", severity, message));

        }
#endif
    }
}